#include "CUDAWrapper.h"
#include <cublas.h>
#include <stdio.h>

void initCUDA(void)
{
	// init cublas
	cublasStatus status = cublasInit();
	if (status != CUBLAS_STATUS_SUCCESS) {
		fprintf (stderr, "!!!! CUBLAS initialization error (%d)\n", status);
		getchar();
	}
}

void exitCUDA(void)
{
	// shutdown cublas
	cublasStatus status = cublasShutdown();
	if (status != CUBLAS_STATUS_SUCCESS) {
		fprintf (stdout, "!!!! shutdown error (A)\n");
		getchar();
	}
}
